#include <stdio.h>

#define log(x) printf("%d", x)
#define logs(x) printf(x)

int isPrime(int a) {
    for (size_t i = 2; i < a/2; i++)
    {
        if (a%i==0) return 0;
    }
    return 1;
}

int main() {

    for (size_t i = 0; i < 20; i++) {
        for (size_t j = 0; j < 33; j++) {
            for (size_t k = 0; k < 100; k++) {
                if (5*i+3*j+k==100 && i+j+3*k==100) printf("%d %d %d\n", i,j,k*3);
            }
        }
    }    

    return 0;
}